package com.rockcent.mall.lib.repository;

import com.rockcent.mall.lib.domain.EmailTemplate;
import com.rockcent.mall.lib.domain.enumclass.EmailTemplateCode;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * Created by oyhk on 14-6-22.
 */
@Repository
public interface EmailTemplateRepository extends JpaRepository<EmailTemplate, Long>, JpaSpecificationExecutor {

    EmailTemplate findByCode(EmailTemplateCode code);

}
